package com.ruoyi.web.core.utils;

import java.io.Serializable;
import java.util.Objects;

/* loaded from: UserRecentSearch.class */
public class UserRecentSearch implements Serializable {
    private String searchInfo;
    private Long   userId;
    private String openid;
    private Long   unionId;

    private String storeType;

    public UserRecentSearch() {
    }

    public UserRecentSearch(String searchInfo, Long userId, String openid, Long unionId,String storeType) {
        this.searchInfo = searchInfo;
        this.userId = userId;
        this.openid = openid;
        this.unionId = unionId;
        this.storeType = storeType;
    }

    public String getStoreType() {
        return storeType;
    }

    public void setStoreType(String storeType) {
        this.storeType = storeType;
    }

    @Override // java.lang.Object
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserRecentSearch)) {
            return false;
        }
        UserRecentSearch other = (UserRecentSearch) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$userId  = getUserId();
        Object other$userId = other.getUserId();
        if (this$userId == null) {
            if (other$userId != null) {
                return false;
            }
        }
        else if (!this$userId.equals(other$userId)) {
            return false;
        }
        Object this$unionId  = getUnionId();
        Object other$unionId = other.getUnionId();
        if (this$unionId == null) {
            if (other$unionId != null) {
                return false;
            }
        }
        else if (!this$unionId.equals(other$unionId)) {
            return false;
        }
        Object this$searchInfo  = getSearchInfo();
        Object other$searchInfo = other.getSearchInfo();
        if (this$searchInfo == null) {
            if (other$searchInfo != null) {
                return false;
            }
        }
        else if (!this$searchInfo.equals(other$searchInfo)) {
            return false;
        }
        Object this$storeType  = getStoreType();
        Object other$storeType = other.getStoreType();
        if (this$storeType == null) {
            if (other$storeType != null) {
                return false;
            }
        }
        else if (!this$storeType.equals(other$storeType)) {
            return false;
        }
        Object this$openid  = getOpenid();
        Object other$openid = other.getOpenid();
        return Objects.equals(this$openid, other$openid);
    }

    protected boolean canEqual(Object other) {
        return other instanceof UserRecentSearch;
    }

    @Override // java.lang.Object
    public int hashCode() {
        Object $userId     = getUserId();
        int    result      = (59) + ($userId == null ? 43 : $userId.hashCode());
        Object $unionId    = getUnionId();
        int    result2     = (result * 59) + ($unionId == null ? 43 : $unionId.hashCode());
        Object $searchInfo = getSearchInfo();
        int    result3     = (result2 * 59) + ($searchInfo == null ? 43 : $searchInfo.hashCode());
        Object $storeType = getStoreType();
        int    result4     = (result3 * 59) + ($storeType == null ? 43 : $storeType.hashCode());
        Object $openid     = getOpenid();
        return (result4 * 59) + ($openid == null ? 43 : $openid.hashCode());

    }

    @Override // java.lang.Object
    public String toString() {
        return "UserRecentSearch(searchInfo=" + getSearchInfo() + ", userId=" + getUserId() + ", openid=" + getOpenid() + ", unionId=" + getUnionId() +", storeType=" + getStoreType()+ ")";
    }

    public String getSearchInfo() {
        return this.searchInfo;
    }

    public void setSearchInfo(String searchInfo) {
        this.searchInfo = searchInfo;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOpenid() {
        return this.openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getUnionId() {
        return this.unionId;
    }

    public void setUnionId(Long unionId) {
        this.unionId = unionId;
    }
}
